import QtQuick 2.0

Rectangle {
    width: 360; height: 240
    color: "#eeeeee"
    id: rootItem

    Rectangle{
        id: rect
        width: 50; height: 150
        anchors.centerIn: parent
        color: "blue"

        MouseArea{
            anchors.fill: parent
            onClicked: PropertyAnimation{
                target: rect
                properties: "width"
                to: 150
                duration: 1000
            }
        }
    }
}

